﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ModifyPwd.aspx.cs" Inherits="Web.admin.UserManage.Users.ModifyPwd" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link href="../../css/style.css" rel="stylesheet" type="text/css" />
    <script src="../../js/jquery-1.3.2.min.js" type="text/javascript"></script>
    <script type="text/javascript" language="javascript">
        function checkEmpty() {
            var emptyNumber = 0;
            $(".txtInput").each(function () {
                if ($(this).val() == "")
                    emptyNumber = emptyNumber + 1;
            });
            if (emptyNumber > 0) {
                alert("所有项为必填项，不允许为空");
                return false;
            }
            else {
                if ($(".newpwd").val() == $(".confirmpwd").val()) {
                    return true;
                }
                else {
                    alert("两次输入密码不一致");
                    return false;
                }
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <div class="top_div">
        <div class="top_div_left" >
                <table>
                    <tr >
                        <td ><img  alt=""; src="../../images/main_hl.gif" /></td>
                        <td ><img alt=""; src="../../images/main_hl2.gif" /></td>
                        <td class="topNav"><span>修改密码</span></td>
                        <td><img alt=""; src="../../images/main_hr.gif" /></td>
                    </tr>
                </table>
        </div>
    </div>
     <div class="middle_div">
        <div class="middle_left"></div>
        <div class="middle_middle">
            <div class="navigation"><span>首页&gt;用户角色管理&gt;修改密码</span></div>
            <div class="submitTable">
                <table>
                    <tr>
                        <th>原密码</th>
                        <td align="left">
                            <asp:TextBox ID="OldPwd" TextMode="Password" CssClass="txtInput" runat="server"></asp:TextBox>
                            <label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>新密码</th>
                        <td align="left">
                            <asp:TextBox ID="NewPwd" TextMode="Password"  CssClass="txtInput newpwd" runat="server"></asp:TextBox>                            
                            <label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <th>确认密码</th>
                        <td align="left">
                            <asp:TextBox ID="ConfirmPwd" TextMode="Password"  CssClass="txtInput confirmpwd" runat="server"></asp:TextBox>                            
                            <label>*</label>
                        </td>
                    </tr>
                    <tr>
                        <td></td>
                        <td align="left">
                            <asp:Button ID="ButtonOK" CssClass="btn_reset" runat="server" Text="保存"  OnClientClick="return checkEmpty();" onclick="ButtonOK_Click" /></td>
                    </tr>
                </table>
            </div>
        </div>
     </div>
    </form>
</body>
</html>
